<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var getarrivalUrl="{:U('Auth/get_config')}";
	var baseConfigDelUrl="{:U('Auth/baseConfigdel')}";
	<!-- using('../../../default/js/baseConfig.js'); -->
</script>
<script type="text/javascript" src="__PUBLIC__/default/js/baseConfig.js"></script>

	<table id="baseConfigDatagrid" toolbar="#baseConfig_tb"></table>
    <!-- 搜索栏 -->
    <div id="baseConfig_tb">
        <form name="formsearch" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="baseConfigObj.showAll()">全部</a>     
            名称:<input class="easyui-textbox" name="name" style="width:150px;height:30px;"> 
			值:<input class="easyui-textbox" name="value" style="width:150px;height:30px;">
			<a href="#" class="easyui-linkbutton searchBar" iconCls="icon-search" style="height:30px;">搜索</a>
        </form>
		 <a href="javascript:void(0)" onclick="baseConfigObj.addBar()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加</a>
		<a href="javascript:void(0)" onclick="baseConfigObj.editBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">编辑</a>
		<a href="javascript:void(0)" onclick="baseConfigObj.removeBar()" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除</a>
    </div>
    <!-- /搜索栏 -->
	<!-- 添加 -->
    <div id="baseConfigAddDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#baseConfigAddButtons"  modal="true">
        <form id="baseConfigAddForm" method="post" novalidate>    
			<div class="fitem">
                <label>变量名称</label>
                <input name="en_name"  type="text" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
            <div class="fitem">
                <label>名称</label>
                <input name="name"  type="text" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>值</label>
                <input name="value"  type="text" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,255]']" />
            </div>
        </form>
    </div>
    <div id="baseConfigAddButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="baseConfigObj.add('{:U('Auth/baseConfigAdd')}')" style="width:90px">添加</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#baseConfigAddDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /添加管理员 -->
	<!-- 编辑 -->
    <div id="baseConfigEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#baseConfigEditButtons"  modal="true">
        <form id="baseConfigEditForm" method="post" novalidate>   
			<div class="fitem">
                <label>变量名称</label>
                <input name="id"  type="hidden" />
                <input name="en_name"  type="text" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
            <div class="fitem">
                <label>名称</label>
                <input name="name"  type="text" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>值</label>
                <input name="value"  type="text" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,255]']" />
            </div>
        </form>
    </div>
    <div id="baseConfigEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="baseConfigObj.save('{:U('Auth/baseConfigSave')}')" style="width:90px">保存</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#baseConfigEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑 -->
</body>